<?php $this->lang->load('nob_trail_inscription', $this->session->userdata('lg'));?>
<br>
<div  class="info">
	<label><?php echo $this->lang->line('inscr_title');?></label>
	<?php if(isset($inscriptions)){?>
	<table class="listing" style="min-width: none;">
		<thead>
			<tr>
				<th>&nbsp;</th>
				<th><?php echo $this->lang->line('inscr_tab_last_name');?></th>
				<th><?php echo $this->lang->line('inscr_tab_first_name');?></th>
				<th><?php echo $this->lang->line('inscr_tab_club');?></th>
	     		<th><?php echo $this->lang->line('inscr_tab_sex');?></th>
				<th><?php echo $this->lang->line('inscr_tab_race');?></th>
			    <th>&nbsp;</th>
			</tr>
		</thead>
		<tbody>
			<?php 
			$i=1;
			foreach ($inscriptions as $currentInscription) {
			?>
			<tr>
				<td><?php echo $i++; ?></td>
				<td><?php echo $currentInscription->lastName; ?></td>
				<td><?php echo $currentInscription->firstName; ?></td>
				<td><?php echo $currentInscription->club; ?></td>
				<td><?php echo $currentInscription->sex; ?></td>
				<td><?php echo $this->tools->getCourse($currentInscription->course); ?></td>
				<td><?php 
				if($currentInscription->paye==1){
				?>
					
						<img alt="payé" src="/nobressart/images/icons/dbtool-green.ico"  />
					
				<?php 			
				}else{
				?>
					
						<img alt="non payé" src="/nobressart/images/icons/dbtool-red.ico"  />
					
				<?php 
				} 
				
			?></td>
			</tr>
			<?php }?>
		</tbody>
	</table>
	<?php }?>
</div>